package my.graduation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import my.graduation.entity.RegistrationSchedule;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;
import java.time.LocalDate;
import java.util.List;

/**
 * @Author: RavenLyn
 * @Date: 2024-12-13
 */
@Mapper
public interface RegistrationScheduleMapper extends BaseMapper<RegistrationSchedule> {
    List<RegistrationSchedule> adminGetListByOrder();

    List<RegistrationSchedule> doctorGetListByOrder(Integer clinicId);

    List<RegistrationSchedule> getCheckList(Integer doctorId, Date date, Integer shift);

    Boolean updateAcceptStatus(Integer regScheId, Date moDate, Integer moDay, Integer moShift);

    Boolean updateRejectStatus(Integer regScheId);

    int getShift(Integer id);

    List<RegistrationSchedule> getExistedRegSche(Integer doctorId, Date nextDate);
}
